package com.levi.mall.controller;

import com.levi.constants.MallConstants;
import com.levi.pojo.User;

import javax.servlet.http.HttpSession;

/**
 * @author shentong
 * @since 2022/4/6 8:59 PM
 */
public class BaseController {

    public User getCurrentUser(HttpSession session) {
        return ((User) session.getAttribute(MallConstants.CURRENT_USER));
    }
}
